import { Injectable } from '@angular/core';

import { HttpService } from '../../services/http/http.service'

@Injectable({
  providedIn: 'root'
})
export class HomeService {

  public getApi: string = 'http://a.itying.com/api/productlist'

  constructor(public http: HttpService) { }

  getList(): any {
    return this.http.get(this.getApi)
  }
  getListJsonp(): any {
    return this.http.jsonp(this.getApi, 'callback')
  }
}
